package us.wili.dev.model.example;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

public class UserExample {
    protected Order order;

    protected boolean distinct;

    protected String lock;

    protected List oredCriteria;

    protected Selector selector;

    protected Limit limit;

    public UserExample() {
        oredCriteria = new ArrayList<>();
        distinct = false;
        lock = "";
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public String getLock() {
        return lock;
    }

    public List getOredCriteria() {
        return oredCriteria;
    }

    public Selector getSelector() {
        return selector;
    }

    public Limit getLimit() {
        return limit;
    }

    public Selector select() {
        selector = new Selector();
        return selector;
    }

    public Order orderBy() {
        order = new Order();
        return order;
    }

    public void limit(int rowCount) {
        limit = new Limit(rowCount);
    }

    public void limit(int offset, int rowCount) {
        limit = new Limit(offset, rowCount);
    }

    public void forUpdate() {
        lock = "for update";
    }

    public void lockInShareMode() {
        lock = "lock in share mode";
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = new Criteria();
        oredCriteria.add(new Criteria());
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = new Criteria();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        distinct = false;
    }

    public void clearLock() {
        lock = "";
    }

    public void clearLimit() {
        limit = null;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                return;
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value) {
            if (value == null) {
                return;
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2) {
            if (value1 == null || value2 == null) {
                return;
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("`ID` =", value);
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("`ID` <>", value);
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("`ID` >", value);
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("`ID` >=", value);
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("`ID` <", value);
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("`ID` <=", value);
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("`ID` in ", values);
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("`ID` not  in ", values);
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("`ID` between", value1, value2);
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("`ID` not between", value1, value2);
            return (Criteria) this;
        }

        public Criteria andPhoneIsNull() {
            addCriterion("`phone` is null");
            return (Criteria) this;
        }

        public Criteria andPhoneIsNotNull() {
            addCriterion("`phone` is not null");
            return (Criteria) this;
        }

        public Criteria andPhoneEqualTo(String value) {
            addCriterion("`phone` =", value);
            return (Criteria) this;
        }

        public Criteria andPhoneNotEqualTo(String value) {
            addCriterion("`phone` <>", value);
            return (Criteria) this;
        }

        public Criteria andPhoneGreaterThan(String value) {
            addCriterion("`phone` >", value);
            return (Criteria) this;
        }

        public Criteria andPhoneGreaterThanOrEqualTo(String value) {
            addCriterion("`phone` >=", value);
            return (Criteria) this;
        }

        public Criteria andPhoneLessThan(String value) {
            addCriterion("`phone` <", value);
            return (Criteria) this;
        }

        public Criteria andPhoneLessThanOrEqualTo(String value) {
            addCriterion("`phone` <=", value);
            return (Criteria) this;
        }

        public Criteria andPhoneLike(String value) {
            addCriterion("`phone` like", value);
            return (Criteria) this;
        }

        public Criteria andPhoneNotLike(String value) {
            addCriterion("`phone` not like", value);
            return (Criteria) this;
        }

        public Criteria andPhoneIn(List<String> values) {
            addCriterion("`phone` in ", values);
            return (Criteria) this;
        }

        public Criteria andPhoneNotIn(List<String> values) {
            addCriterion("`phone` not  in ", values);
            return (Criteria) this;
        }

        public Criteria andPhoneBetween(String value1, String value2) {
            addCriterion("`phone` between", value1, value2);
            return (Criteria) this;
        }

        public Criteria andPhoneNotBetween(String value1, String value2) {
            addCriterion("`phone` not between", value1, value2);
            return (Criteria) this;
        }

        public Criteria andNickNameIsNull() {
            addCriterion("`nick_name` is null");
            return (Criteria) this;
        }

        public Criteria andNickNameIsNotNull() {
            addCriterion("`nick_name` is not null");
            return (Criteria) this;
        }

        public Criteria andNickNameEqualTo(String value) {
            addCriterion("`nick_name` =", value);
            return (Criteria) this;
        }

        public Criteria andNickNameNotEqualTo(String value) {
            addCriterion("`nick_name` <>", value);
            return (Criteria) this;
        }

        public Criteria andNickNameGreaterThan(String value) {
            addCriterion("`nick_name` >", value);
            return (Criteria) this;
        }

        public Criteria andNickNameGreaterThanOrEqualTo(String value) {
            addCriterion("`nick_name` >=", value);
            return (Criteria) this;
        }

        public Criteria andNickNameLessThan(String value) {
            addCriterion("`nick_name` <", value);
            return (Criteria) this;
        }

        public Criteria andNickNameLessThanOrEqualTo(String value) {
            addCriterion("`nick_name` <=", value);
            return (Criteria) this;
        }

        public Criteria andNickNameLike(String value) {
            addCriterion("`nick_name` like", value);
            return (Criteria) this;
        }

        public Criteria andNickNameNotLike(String value) {
            addCriterion("`nick_name` not like", value);
            return (Criteria) this;
        }

        public Criteria andNickNameIn(List<String> values) {
            addCriterion("`nick_name` in ", values);
            return (Criteria) this;
        }

        public Criteria andNickNameNotIn(List<String> values) {
            addCriterion("`nick_name` not  in ", values);
            return (Criteria) this;
        }

        public Criteria andNickNameBetween(String value1, String value2) {
            addCriterion("`nick_name` between", value1, value2);
            return (Criteria) this;
        }

        public Criteria andNickNameNotBetween(String value1, String value2) {
            addCriterion("`nick_name` not between", value1, value2);
            return (Criteria) this;
        }

        public Criteria andHeadImgUrlIsNull() {
            addCriterion("`head_img_url` is null");
            return (Criteria) this;
        }

        public Criteria andHeadImgUrlIsNotNull() {
            addCriterion("`head_img_url` is not null");
            return (Criteria) this;
        }

        public Criteria andHeadImgUrlEqualTo(String value) {
            addCriterion("`head_img_url` =", value);
            return (Criteria) this;
        }

        public Criteria andHeadImgUrlNotEqualTo(String value) {
            addCriterion("`head_img_url` <>", value);
            return (Criteria) this;
        }

        public Criteria andHeadImgUrlGreaterThan(String value) {
            addCriterion("`head_img_url` >", value);
            return (Criteria) this;
        }

        public Criteria andHeadImgUrlGreaterThanOrEqualTo(String value) {
            addCriterion("`head_img_url` >=", value);
            return (Criteria) this;
        }

        public Criteria andHeadImgUrlLessThan(String value) {
            addCriterion("`head_img_url` <", value);
            return (Criteria) this;
        }

        public Criteria andHeadImgUrlLessThanOrEqualTo(String value) {
            addCriterion("`head_img_url` <=", value);
            return (Criteria) this;
        }

        public Criteria andHeadImgUrlLike(String value) {
            addCriterion("`head_img_url` like", value);
            return (Criteria) this;
        }

        public Criteria andHeadImgUrlNotLike(String value) {
            addCriterion("`head_img_url` not like", value);
            return (Criteria) this;
        }

        public Criteria andHeadImgUrlIn(List<String> values) {
            addCriterion("`head_img_url` in ", values);
            return (Criteria) this;
        }

        public Criteria andHeadImgUrlNotIn(List<String> values) {
            addCriterion("`head_img_url` not  in ", values);
            return (Criteria) this;
        }

        public Criteria andHeadImgUrlBetween(String value1, String value2) {
            addCriterion("`head_img_url` between", value1, value2);
            return (Criteria) this;
        }

        public Criteria andHeadImgUrlNotBetween(String value1, String value2) {
            addCriterion("`head_img_url` not between", value1, value2);
            return (Criteria) this;
        }

        public Criteria andSexIsNull() {
            addCriterion("`sex` is null");
            return (Criteria) this;
        }

        public Criteria andSexIsNotNull() {
            addCriterion("`sex` is not null");
            return (Criteria) this;
        }

        public Criteria andSexEqualTo(Integer value) {
            addCriterion("`sex` =", value);
            return (Criteria) this;
        }

        public Criteria andSexNotEqualTo(Integer value) {
            addCriterion("`sex` <>", value);
            return (Criteria) this;
        }

        public Criteria andSexGreaterThan(Integer value) {
            addCriterion("`sex` >", value);
            return (Criteria) this;
        }

        public Criteria andSexGreaterThanOrEqualTo(Integer value) {
            addCriterion("`sex` >=", value);
            return (Criteria) this;
        }

        public Criteria andSexLessThan(Integer value) {
            addCriterion("`sex` <", value);
            return (Criteria) this;
        }

        public Criteria andSexLessThanOrEqualTo(Integer value) {
            addCriterion("`sex` <=", value);
            return (Criteria) this;
        }

        public Criteria andSexIn(List<Integer> values) {
            addCriterion("`sex` in ", values);
            return (Criteria) this;
        }

        public Criteria andSexNotIn(List<Integer> values) {
            addCriterion("`sex` not  in ", values);
            return (Criteria) this;
        }

        public Criteria andSexBetween(Integer value1, Integer value2) {
            addCriterion("`sex` between", value1, value2);
            return (Criteria) this;
        }

        public Criteria andSexNotBetween(Integer value1, Integer value2) {
            addCriterion("`sex` not between", value1, value2);
            return (Criteria) this;
        }

        public Criteria andPwdEqualTo(String value) {
            addCriterion("`pwd` =", value);
            return (Criteria) this;
        }

        public Criteria andPwdNotEqualTo(String value) {
            addCriterion("`pwd` <>", value);
            return (Criteria) this;
        }

        public Criteria andPwdGreaterThan(String value) {
            addCriterion("`pwd` >", value);
            return (Criteria) this;
        }

        public Criteria andPwdGreaterThanOrEqualTo(String value) {
            addCriterion("`pwd` >=", value);
            return (Criteria) this;
        }

        public Criteria andPwdLessThan(String value) {
            addCriterion("`pwd` <", value);
            return (Criteria) this;
        }

        public Criteria andPwdLessThanOrEqualTo(String value) {
            addCriterion("`pwd` <=", value);
            return (Criteria) this;
        }

        public Criteria andPwdLike(String value) {
            addCriterion("`pwd` like", value);
            return (Criteria) this;
        }

        public Criteria andPwdNotLike(String value) {
            addCriterion("`pwd` not like", value);
            return (Criteria) this;
        }

        public Criteria andPwdIn(List<String> values) {
            addCriterion("`pwd` in ", values);
            return (Criteria) this;
        }

        public Criteria andPwdNotIn(List<String> values) {
            addCriterion("`pwd` not  in ", values);
            return (Criteria) this;
        }

        public Criteria andPwdBetween(String value1, String value2) {
            addCriterion("`pwd` between", value1, value2);
            return (Criteria) this;
        }

        public Criteria andPwdNotBetween(String value1, String value2) {
            addCriterion("`pwd` not between", value1, value2);
            return (Criteria) this;
        }

        public Criteria andSaltEqualTo(String value) {
            addCriterion("`salt` =", value);
            return (Criteria) this;
        }

        public Criteria andSaltNotEqualTo(String value) {
            addCriterion("`salt` <>", value);
            return (Criteria) this;
        }

        public Criteria andSaltGreaterThan(String value) {
            addCriterion("`salt` >", value);
            return (Criteria) this;
        }

        public Criteria andSaltGreaterThanOrEqualTo(String value) {
            addCriterion("`salt` >=", value);
            return (Criteria) this;
        }

        public Criteria andSaltLessThan(String value) {
            addCriterion("`salt` <", value);
            return (Criteria) this;
        }

        public Criteria andSaltLessThanOrEqualTo(String value) {
            addCriterion("`salt` <=", value);
            return (Criteria) this;
        }

        public Criteria andSaltLike(String value) {
            addCriterion("`salt` like", value);
            return (Criteria) this;
        }

        public Criteria andSaltNotLike(String value) {
            addCriterion("`salt` not like", value);
            return (Criteria) this;
        }

        public Criteria andSaltIn(List<String> values) {
            addCriterion("`salt` in ", values);
            return (Criteria) this;
        }

        public Criteria andSaltNotIn(List<String> values) {
            addCriterion("`salt` not  in ", values);
            return (Criteria) this;
        }

        public Criteria andSaltBetween(String value1, String value2) {
            addCriterion("`salt` between", value1, value2);
            return (Criteria) this;
        }

        public Criteria andSaltNotBetween(String value1, String value2) {
            addCriterion("`salt` not between", value1, value2);
            return (Criteria) this;
        }

        public Criteria andAccountBlanceIsNull() {
            addCriterion("`account_blance` is null");
            return (Criteria) this;
        }

        public Criteria andAccountBlanceIsNotNull() {
            addCriterion("`account_blance` is not null");
            return (Criteria) this;
        }

        public Criteria andAccountBlanceEqualTo(BigDecimal value) {
            addCriterion("`account_blance` =", value);
            return (Criteria) this;
        }

        public Criteria andAccountBlanceNotEqualTo(BigDecimal value) {
            addCriterion("`account_blance` <>", value);
            return (Criteria) this;
        }

        public Criteria andAccountBlanceGreaterThan(BigDecimal value) {
            addCriterion("`account_blance` >", value);
            return (Criteria) this;
        }

        public Criteria andAccountBlanceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("`account_blance` >=", value);
            return (Criteria) this;
        }

        public Criteria andAccountBlanceLessThan(BigDecimal value) {
            addCriterion("`account_blance` <", value);
            return (Criteria) this;
        }

        public Criteria andAccountBlanceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("`account_blance` <=", value);
            return (Criteria) this;
        }

        public Criteria andAccountBlanceIn(List<BigDecimal> values) {
            addCriterion("`account_blance` in ", values);
            return (Criteria) this;
        }

        public Criteria andAccountBlanceNotIn(List<BigDecimal> values) {
            addCriterion("`account_blance` not  in ", values);
            return (Criteria) this;
        }

        public Criteria andAccountBlanceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("`account_blance` between", value1, value2);
            return (Criteria) this;
        }

        public Criteria andAccountBlanceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("`account_blance` not between", value1, value2);
            return (Criteria) this;
        }

        public Criteria andIfEnableIsNull() {
            addCriterion("`if_enable` is null");
            return (Criteria) this;
        }

        public Criteria andIfEnableIsNotNull() {
            addCriterion("`if_enable` is not null");
            return (Criteria) this;
        }

        public Criteria andIfEnableEqualTo(Integer value) {
            addCriterion("`if_enable` =", value);
            return (Criteria) this;
        }

        public Criteria andIfEnableNotEqualTo(Integer value) {
            addCriterion("`if_enable` <>", value);
            return (Criteria) this;
        }

        public Criteria andIfEnableGreaterThan(Integer value) {
            addCriterion("`if_enable` >", value);
            return (Criteria) this;
        }

        public Criteria andIfEnableGreaterThanOrEqualTo(Integer value) {
            addCriterion("`if_enable` >=", value);
            return (Criteria) this;
        }

        public Criteria andIfEnableLessThan(Integer value) {
            addCriterion("`if_enable` <", value);
            return (Criteria) this;
        }

        public Criteria andIfEnableLessThanOrEqualTo(Integer value) {
            addCriterion("`if_enable` <=", value);
            return (Criteria) this;
        }

        public Criteria andIfEnableIn(List<Integer> values) {
            addCriterion("`if_enable` in ", values);
            return (Criteria) this;
        }

        public Criteria andIfEnableNotIn(List<Integer> values) {
            addCriterion("`if_enable` not  in ", values);
            return (Criteria) this;
        }

        public Criteria andIfEnableBetween(Integer value1, Integer value2) {
            addCriterion("`if_enable` between", value1, value2);
            return (Criteria) this;
        }

        public Criteria andIfEnableNotBetween(Integer value1, Integer value2) {
            addCriterion("`if_enable` not between", value1, value2);
            return (Criteria) this;
        }

        public Criteria andCreatedAtEqualTo(LocalDateTime value) {
            addCriterion("`created_at` =", value);
            return (Criteria) this;
        }

        public Criteria andCreatedAtNotEqualTo(LocalDateTime value) {
            addCriterion("`created_at` <>", value);
            return (Criteria) this;
        }

        public Criteria andCreatedAtGreaterThan(LocalDateTime value) {
            addCriterion("`created_at` >", value);
            return (Criteria) this;
        }

        public Criteria andCreatedAtGreaterThanOrEqualTo(LocalDateTime value) {
            addCriterion("`created_at` >=", value);
            return (Criteria) this;
        }

        public Criteria andCreatedAtLessThan(LocalDateTime value) {
            addCriterion("`created_at` <", value);
            return (Criteria) this;
        }

        public Criteria andCreatedAtLessThanOrEqualTo(LocalDateTime value) {
            addCriterion("`created_at` <=", value);
            return (Criteria) this;
        }

        public Criteria andCreatedAtIn(List<LocalDateTime> values) {
            addCriterion("`created_at` in ", values);
            return (Criteria) this;
        }

        public Criteria andCreatedAtNotIn(List<LocalDateTime> values) {
            addCriterion("`created_at` not  in ", values);
            return (Criteria) this;
        }

        public Criteria andCreatedAtBetween(LocalDateTime value1, LocalDateTime value2) {
            addCriterion("`created_at` between", value1, value2);
            return (Criteria) this;
        }

        public Criteria andCreatedAtNotBetween(LocalDateTime value1, LocalDateTime value2) {
            addCriterion("`created_at` not between", value1, value2);
            return (Criteria) this;
        }

        public Criteria andUpdatedAtEqualTo(LocalDateTime value) {
            addCriterion("`updated_at` =", value);
            return (Criteria) this;
        }

        public Criteria andUpdatedAtNotEqualTo(LocalDateTime value) {
            addCriterion("`updated_at` <>", value);
            return (Criteria) this;
        }

        public Criteria andUpdatedAtGreaterThan(LocalDateTime value) {
            addCriterion("`updated_at` >", value);
            return (Criteria) this;
        }

        public Criteria andUpdatedAtGreaterThanOrEqualTo(LocalDateTime value) {
            addCriterion("`updated_at` >=", value);
            return (Criteria) this;
        }

        public Criteria andUpdatedAtLessThan(LocalDateTime value) {
            addCriterion("`updated_at` <", value);
            return (Criteria) this;
        }

        public Criteria andUpdatedAtLessThanOrEqualTo(LocalDateTime value) {
            addCriterion("`updated_at` <=", value);
            return (Criteria) this;
        }

        public Criteria andUpdatedAtIn(List<LocalDateTime> values) {
            addCriterion("`updated_at` in ", values);
            return (Criteria) this;
        }

        public Criteria andUpdatedAtNotIn(List<LocalDateTime> values) {
            addCriterion("`updated_at` not  in ", values);
            return (Criteria) this;
        }

        public Criteria andUpdatedAtBetween(LocalDateTime value1, LocalDateTime value2) {
            addCriterion("`updated_at` between", value1, value2);
            return (Criteria) this;
        }

        public Criteria andUpdatedAtNotBetween(LocalDateTime value1, LocalDateTime value2) {
            addCriterion("`updated_at` not between", value1, value2);
            return (Criteria) this;
        }

        public Criteria andVersionIsNull() {
            addCriterion("`version` is null");
            return (Criteria) this;
        }

        public Criteria andVersionIsNotNull() {
            addCriterion("`version` is not null");
            return (Criteria) this;
        }

        public Criteria andVersionEqualTo(Long value) {
            addCriterion("`version` =", value);
            return (Criteria) this;
        }

        public Criteria andVersionNotEqualTo(Long value) {
            addCriterion("`version` <>", value);
            return (Criteria) this;
        }

        public Criteria andVersionGreaterThan(Long value) {
            addCriterion("`version` >", value);
            return (Criteria) this;
        }

        public Criteria andVersionGreaterThanOrEqualTo(Long value) {
            addCriterion("`version` >=", value);
            return (Criteria) this;
        }

        public Criteria andVersionLessThan(Long value) {
            addCriterion("`version` <", value);
            return (Criteria) this;
        }

        public Criteria andVersionLessThanOrEqualTo(Long value) {
            addCriterion("`version` <=", value);
            return (Criteria) this;
        }

        public Criteria andVersionIn(List<Long> values) {
            addCriterion("`version` in ", values);
            return (Criteria) this;
        }

        public Criteria andVersionNotIn(List<Long> values) {
            addCriterion("`version` not  in ", values);
            return (Criteria) this;
        }

        public Criteria andVersionBetween(Long value1, Long value2) {
            addCriterion("`version` between", value1, value2);
            return (Criteria) this;
        }

        public Criteria andVersionNotBetween(Long value1, Long value2) {
            addCriterion("`version` not between", value1, value2);
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }

    public static class Selector {
        private List<String> columns = new ArrayList<>();

        public int getSize() {
            return columns.size();
        }

        public Selector addWithAlias(String column) {
            columns.add(column+ "AS `" + column + "`");
            return this;
        }

        public List<String> getColumns() {
            return columns;
        }

        public Selector id() {
            columns.add("user.ID");
            return this;
        }

        public Selector phone() {
            columns.add("user.phone");
            return this;
        }

        public Selector nickName() {
            columns.add("user.nick_name");
            return this;
        }

        public Selector headImgUrl() {
            columns.add("user.head_img_url");
            return this;
        }

        public Selector sex() {
            columns.add("user.sex");
            return this;
        }

        public Selector pwd() {
            columns.add("user.pwd");
            return this;
        }

        public Selector salt() {
            columns.add("user.salt");
            return this;
        }

        public Selector accountBlance() {
            columns.add("user.account_blance");
            return this;
        }

        public Selector ifEnable() {
            columns.add("user.if_enable");
            return this;
        }

        public Selector createdAt() {
            columns.add("user.created_at");
            return this;
        }

        public Selector updatedAt() {
            columns.add("user.updated_at");
            return this;
        }

        public Selector version() {
            columns.add("user.version");
            return this;
        }

        public void clear() {
            columns.clear();
        }
    }

    public static class Order {
        private List<String> columns = new ArrayList<>();

        public int getSize() {
            return columns.size();
        }

        public List<String> getColumns() {
            return columns;
        }

        public Order add(String clause) {
            columns.add(clause);
            return this;
        }

        public Order ascId() {
            columns.add("user.ID ASC");
            return this;
        }

        public Order descId() {
            columns.add("user.ID DESC");
            return this;
        }

        public Order ascPhone() {
            columns.add("user.phone ASC");
            return this;
        }

        public Order descPhone() {
            columns.add("user.phone DESC");
            return this;
        }

        public Order ascNickName() {
            columns.add("user.nick_name ASC");
            return this;
        }

        public Order descNickName() {
            columns.add("user.nick_name DESC");
            return this;
        }

        public Order ascHeadImgUrl() {
            columns.add("user.head_img_url ASC");
            return this;
        }

        public Order descHeadImgUrl() {
            columns.add("user.head_img_url DESC");
            return this;
        }

        public Order ascSex() {
            columns.add("user.sex ASC");
            return this;
        }

        public Order descSex() {
            columns.add("user.sex DESC");
            return this;
        }

        public Order ascPwd() {
            columns.add("user.pwd ASC");
            return this;
        }

        public Order descPwd() {
            columns.add("user.pwd DESC");
            return this;
        }

        public Order ascSalt() {
            columns.add("user.salt ASC");
            return this;
        }

        public Order descSalt() {
            columns.add("user.salt DESC");
            return this;
        }

        public Order ascAccountBlance() {
            columns.add("user.account_blance ASC");
            return this;
        }

        public Order descAccountBlance() {
            columns.add("user.account_blance DESC");
            return this;
        }

        public Order ascIfEnable() {
            columns.add("user.if_enable ASC");
            return this;
        }

        public Order descIfEnable() {
            columns.add("user.if_enable DESC");
            return this;
        }

        public Order ascCreatedAt() {
            columns.add("user.created_at ASC");
            return this;
        }

        public Order descCreatedAt() {
            columns.add("user.created_at DESC");
            return this;
        }

        public Order ascUpdatedAt() {
            columns.add("user.updated_at ASC");
            return this;
        }

        public Order descUpdatedAt() {
            columns.add("user.updated_at DESC");
            return this;
        }

        public Order ascVersion() {
            columns.add("user.version ASC");
            return this;
        }

        public Order descVersion() {
            columns.add("user.version DESC");
            return this;
        }

        public void clear() {
            columns.clear();
        }
    }

    public static class Limit {
        private int offset;

        private int rowCount;

        private boolean isLmtRow;

        public int getOffset() {
            return offset;
        }

        public int getRowCount() {
            return rowCount;
        }

        public boolean isIsLmtRow() {
            return isLmtRow;
        }

        public Limit(int rowCount) {
            this.rowCount = rowCount; 
            isLmtRow = false;
        }

        public Limit(int offset, int rowCount) {
            this.offset = offset; 
            this.rowCount = rowCount;
            isLmtRow = true;
        }
    }
}